﻿using BaseDao;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AMInstantMessagingServerDao
{
    /// <summary>
    /// 朋友服务
    /// </summary>
    public class FriendService : BaseService<FriendModel>
    {
        private FriendProvider _FriendProvider = new FriendProvider();

        protected override IBaseProvider<FriendModel> Provider => _FriendProvider;

        /// <summary>
        /// 根据用户Id获取全部的朋友信息
        /// </summary>
        /// <param name="user_id"></param>
        /// <returns></returns>
        public IEnumerable<FriendModel> GetAllFriendByUserId(long user_id)
        {
            return _FriendProvider.GetAllFriendByUserId(user_id);
        }
    }
}
